package mhwi.powers;

import com.megacrit.cardcrawl.actions.common.ApplyPowerAction;
import com.megacrit.cardcrawl.actions.common.RemoveSpecificPowerAction;
import com.megacrit.cardcrawl.actions.utility.UseCardAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.core.AbstractCreature;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import mhwi.helper.ModHelper;

public class BaDaoPower extends TemplatePower{
    private static final Class<? extends TemplatePower> CLASS = BaDaoPower.class;
    private static final String CLASS_NAME = CLASS.getSimpleName();
    public static final String POWER_ID = ModHelper.makeId(CLASS_NAME);

    public BaDaoPower(AbstractCreature owner) {
        super(owner, -1, CLASS);
    }

    @Override
    public void updateDescription() {
        this.description = super.DESCRIPTIONS[0];
    }

    @Override
    public void onInitialApplication() {
        if (ModHelper.hasPowers(ShouDaoPower.POWER_ID)){
            AbstractDungeon.actionManager.addToTop(
                    new RemoveSpecificPowerAction(this.owner, this.owner, ShouDaoPower.POWER_ID)
            );
        }
    }
}
